home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
cli
/
mx2.arc
/
MX2.TXT
< prev
next >
Wrap
Text File
|
1988-06-11
|
29KB
|
1,585 lines
- 1 - MX2 Multitasking Kernel
**************************************************************************
* Due to my now being a multimillionaire I am forever giving away *
* the complete source and the complete program is now *
* !!! PUBLIC DOMAIN !!! *
* *
* !!! FREE !!! *
* As a service to help down and out C programmers around the *
* world you can still send a donation to *
* *
* Fred Brooks *
* 4145 44ST #5 *
* San Diego CA 92105 *
* *
* You will receive a thank you and can continue *
* to live with a clear conscience. *
* *
* MX2 V2.3.0 A multitasking and multiuser *
* environment for ATARI ST. *
* Written using TDI Modula-2 3.01a Compiler *
* For TOS Versions 11/20 1985 and 04/22 1987 *
* Other Versions may not run correctly. *
* *
* This set of programs are NOT for sale by anyone and I *
* reserve all rights to it's ownership. *
**************************************************************************
Intro: MX2 is a multitasking environment to aid in program development
for the ATARI ST. It was developed in Modula-2 but can be used
with any language such as C, BASIC, or PASCAL. Suggested system
minimum requirements are 1 MEG of memory with a double-sided
disk drive. A hard disk drive will greatly improve system
performance.
MX2 Multitasking Kernel
- 2 - MX2 Multitasking Kernel
NOTES:
I have tuned this kernel for use with the GULAM shell. I have
had no problems using it exempt with the TE communications command.
It locks up my background xmodem routines if used.
MX2 Multitasking Kernel
- 3 - MX2 Multitasking Kernel
SYSTEM GENERATION:
The MX2.INF file contains the system generation parameters.
It is an ASCII files that can be edited with the UE editor in
GULAM or any ASCII editor This files allows you to change the
default system boot parameters
If this file does not exist the default values are:
numeric values are in decimal
Init Command : IP CLI.PRG
System Memory : 32000
Alt Program HOTKEY : 3276800
Normal Mouse HOTKEY : 3211264
Cursor Mouse HOTKEY : 3014656
Reboot HOTKEY : 1245184
Reserved Memory : 32000
The initialisation command is normally used to load the SHELL
program. The CLI.PRG enables GULAM.PRG to multitask then loads
the program. If the program is exited the kernel will respawn
the SHELL. To load a program other than the SHELL edit the line to
to IP "name of program".
System memory is the size of the memory reserved by MX2 to
allocate for it's internal data structures. The default size
should be adequate for 7 MX2 processes with a workspace of 2K
each.
Reserved memory is the size of the memory block that will be split
off of the main memory heap. This memory should still be available
with GEM programs that allocate all available memory with a malloc(-1).
MX2 Multitasking Kernel
- 4 - MX2 Multitasking Kernel
MX2.ACC:
The MX2.ACC will not work correctly if you try to run two or more GULAM
shells. Because both would be GEM programs and the AES would hang or get lost
. If you want to have a remote or wish to run two shells from the desk to
please select the OFF option from the desk ACC before starting up the second
shell with the go.g script file or by typing the commands. I am trying to
work around this problem.
MX2 Multitasking Kernel
- 5 - MX2 Multitasking Kernel
LOGIN and PASSWD file:
The MX2 password system uses five fields separated by a colon.
The file 'passwd' contains all password records.
field 1 userid
field 2 password
field 3 path
field 4 program
field 5 comment
Example mx2::::
Is the minimum password record. It contains only the userid field with the
other fields set to null. This would login user 'mx2' with no password to
the default path 'current path' and run the default program 'gulam.prg'.
Example fred:AXKHRWQ:c\mx2:gulam.prg: login as me using my work id
Would login user 'fred' using encrypted password 'AXKHRWQ' to drive 'c'
path '/mx2' "note if a drive is specified DO NOT use a colon between the drive
character and the path" and run program 'gulam.prg'. The comment is not used
by the program and is there to inform the user. The program field could have
been a null entry or any other valid program. The program field
may include subdirectories. ie ':\mx2\gulam.prg:'
The 'passwd.prg' is used to set and change user passwords. New users must
have a null field 2 when it is created. Passwords MUST be set with the
passwd.prg.
USAGE: passwd fred
^
user
Where fred is a system username in field 1 of a password record.
If there is no password the program will ask for a new password.
If a password already exists you will be asked for the old password
first, then if it is correct you can change the password. Passwords must be
at least 4 characters long.
Examine the supplied passwd file for more examples.
MX2 Multitasking Kernel
- 6 - MX2 Multitasking Kernel
INTERFACE LIBRARIES:
The SYSCALL module is the standard interface for user programs
to the MX2 Multitasking system. It includes functions to starting
ending and controlling concurrent processes. The TDILIB contains
the TDI MODULA-2 3.01a libraries. I will include a portable C
library as soon as I can translate the code over.
MX2 Multitasking Kernel
- 7 - MX2 Multitasking Kernel
COMMUNICATIONS:
Also included is a no frills communications program.
COM.TOS without options sets the AUX port to 1200BPS.
COM.TOS # "where # is a number" will set the AUX port to
the speed according to the table.
0 = 300BPS
1 = 1200BPS
2 = 2400BPS
4 = 4800BPS
9 = 9600BPS
H = 19200BPS
Use the [Undo] key to exit ba